package com.yuanhua.sim.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yuanhua
 * @since 2022-08-03
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("im_group")
@ApiModel(value = "Group对象", description = "")
public class Group extends Model<Group> {

    private static final long serialVersionUID = 1L;

    @TableId("gid")
    private Long gid;

    @ApiModelProperty("群名称")
    @TableField("gname")
    private String gname;

    @ApiModelProperty("群主id")
    @TableField("admin_id")
    private Long adminId;

    @ApiModelProperty("群公告")
    @TableField("notice")
    private String notice;

    @ApiModelProperty("图标")
    @TableField("icon")
    private String icon;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


    @Override
    public Serializable pkVal() {
        return this.gid;
    }

}
